<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="js/vue.min.js"></script>
    <script src="js/axios.min.js"></script>
</head>
<body>
<h1>首页</h1>
<div id="app">
    <button @click="test">测试</button>
    <a href="background/employeeManage.html">员工管理</a>
    <a href="background/phoneManage.html">手机管理</a>
</div>
<script>
    var v = new Vue({
        el : "#app",
        data : {

        },
        methods:{
            test(){
                axios.post("hello?id=10010",{
                    username: "admin",
                    password: "123456"
                }).then(res=>{
                    console.log('跳转成功')
                })
            }
        }
    })
</script>
</body>
</html>